package com.tutorial.service.impl;

import com.tutorial.dao.UserDao;
import com.tutorial.dao.impl.UserDaoImpl_xmlConfig;
import com.tutorial.service.UserService;
import org.springframework.context.annotation.Primary;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * 用户信息业务层实现类
 *
 * @ClassName UserServiceImpl
 * @Description 用户信息业务层实现类
 * @Author G
 * @Date 2025/3/4 16:01
 */

public class UserServiceImpl_xmlConfig implements UserService, Ordered {

    private UserDao userDao;
    public UserServiceImpl_xmlConfig(){
        System.out.println("UserServiceImpl_xmlConfig");
    }

    public void setUserDao(UserDaoImpl_xmlConfig userDao) {
        this.userDao = userDao;
    }

    @Override
    public void save() {
        userDao.save();
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
